{"ast":null,"code":"import _objectDestructuringEmpty from\"/Users/iliyagladkov/to-do-react/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js\";import React from'react';import MyButtonDel from'./UI/MyButton/MyButtonDel/MyButtonDel';import{jsxs as _jsxs}from\"react/jsx-runtime\";import{jsx as _jsx}from\"react/jsx-runtime\";export default function ToDoItem(_ref){var props=Object.assign({},(_objectDestructuringEmpty(_ref),_ref));return/*#__PURE__*/_jsxs(\"div\",{className:\"to-do-item\",onClick:function onClick(){props.getTask({number:props.number,title:props.toDo.title,body:props.toDo.body});},children:[/*#__PURE__*/_jsxs(\"div\",{className:\"to-do-item-content\",onClick:function onClick(){props.setVisibleModal();},children:[/*#__PURE__*/_jsxs(\"strong\",{children:[props.number,\". \",props.toDo.title]}),/*#__PURE__*/_jsx(\"div\",{children:props.toDo.body})]}),/*#__PURE__*/_jsx(MyButtonDel,{onClick:function onClick(){props.remove(props.toDo);}})]});}","map":{"version":3,"names":["React","MyButtonDel","ToDoItem","props","getTask","number","title","toDo","body","setVisibleModal","remove"],"sources":["/Users/iliyagladkov/to-do-react/src/components/ToDoItem.jsx"],"sourcesContent":["import React from 'react'\nimport MyButtonDel from './UI/MyButton/MyButtonDel/MyButtonDel'\n\nexport default function ToDoItem({...props}) {\n  return (\n    <div className='to-do-item' onClick={() => {\n      props.getTask({number: props.number,title: props.toDo.title, body: props.toDo.body})\n    }}>\n        <div className='to-do-item-content' onClick={() => {props.setVisibleModal()}}>\n            <strong>{props.number}. {props.toDo.title}</strong>\n            <div>{props.toDo.body}</div>\n        </div>\n        <MyButtonDel onClick={() => {props.remove(props.toDo)}}/>\n    </div>\n  )\n}"],"mappings":"2IAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,MAAOC,YAAW,KAAM,uCAAuC,yFAE/D,cAAe,SAASC,SAAQ,MAAa,IAARC,MAAK,0DACxC,mBACE,aAAK,SAAS,CAAC,YAAY,CAAC,OAAO,CAAE,kBAAM,CACzCA,KAAK,CAACC,OAAO,CAAC,CAACC,MAAM,CAAEF,KAAK,CAACE,MAAM,CAACC,KAAK,CAAEH,KAAK,CAACI,IAAI,CAACD,KAAK,CAAEE,IAAI,CAAEL,KAAK,CAACI,IAAI,CAACC,IAAI,CAAC,CAAC,CACtF,CAAE,wBACE,aAAK,SAAS,CAAC,oBAAoB,CAAC,OAAO,CAAE,kBAAM,CAACL,KAAK,CAACM,eAAe,EAAE,EAAE,wBACzE,0BAASN,KAAK,CAACE,MAAM,CAAC,IAAE,CAACF,KAAK,CAACI,IAAI,CAACD,KAAK,GAAU,cACnD,qBAAMH,KAAK,CAACI,IAAI,CAACC,IAAI,EAAO,GAC1B,cACN,KAAC,WAAW,EAAC,OAAO,CAAE,kBAAM,CAACL,KAAK,CAACO,MAAM,CAACP,KAAK,CAACI,IAAI,CAAC,EAAE,EAAE,GACvD,CAEV"},"metadata":{},"sourceType":"module","externalDependencies":[]}